Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHPUnit 10 | Remove support for expecting PHP notices/exceptions #108

Merged
merged 1 commit into from
Mar 31, 2023

Conversation

jrfnl
Copy link
Collaborator

@jrfnl jrfnl commented Mar 31, 2023

Remove the ExpectPHPException polyfill and all references to it as support for expecting PHP native and user added deprecations, notices, warnings and errors has been dropped in PHPUnit 10.0.

PHP native Exceptions can still be tested using the expectException() method with the name of the PHP native Exception.

Refs:

Remove the `ExpectPHPException` polyfill and all references to it as support for expecting PHP native and user added deprecations, notices, warnings and errors has been dropped in PHPUnit 10.0.

PHP native Exceptions can still be tested using the `expectException()` method with the name of the PHP native Exception.

Refs:
* https://phpunit.de/announcements/phpunit-10.html
* https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-10.0.md#1000---2023-02-03
* sebastianbergmann/phpunit#3775
* sebastianbergmann/phpunit#5062
* sebastianbergmann/phpunit@a2c784c
@jrfnl jrfnl added this to the 2.0.0 milestone Mar 31, 2023
@jrfnl jrfnl mentioned this pull request Mar 31, 2023
11 tasks
@jrfnl jrfnl merged commit 73bf346 into 2.x Mar 31, 2023
@jrfnl jrfnl deleted the 2.0/phpunit-10/remove-expectphpexception-polyfill branch March 31, 2023 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant